package com.zmj.controller;

import com.zmj.entity.Log;
import com.zmj.service.LogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;
import java.util.Map;


@Controller
public class LogController {
    @Autowired
    LogService logService;

    @RequestMapping("/getLog")
    public String getLog(Map<String,Object> map){
      List<Log> logList= logService.selLogs();
      map.put("logList",logList);
      return "log";
    }

}
